@import '../../theme//var.scss';

.container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 0;
  opacity: 0;
  overflow: hidden;
  background-color: var(--bg);
  color: var(--main-text-color);
  z-index: 1001;
  transition: opacity .5s ease;
  &.active {
    height: 100vh;
    opacity: 1;
  }
  .wrapper {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    max-width: 100%;
    height: 100%;
    .searchBox {
      width: 100%;
      position: absolute;
      top: 45%;
      transition: all .3s;
      .loading {
        display: block;
        margin: 50px auto;
      }
      input {
        width: 100%;
        left: 0;
        right: 0;
        border: 0;
        outline: none;
        border-bottom: solid 1px var(--scrollbar-bg);
        padding: 25px 0 15px 0;
        font-size: 25px;
        text-align: center;
        background-color: transparent;
      }
      button {
        background-color: transparent;
        border: 0;
        outline: none;
        position: absolute;
        right: 0;
        top: 30px;
        font-size: 30px;
        padding: 5px 15px;
        cursor: pointer;
      }
      &.active {
        top: 0;
      }
    }
    .result {
      position: absolute;
      top: 100px;
      bottom: 40px;
      overflow: auto;
      padding: 16px;
    }
  }
  @media (min-width: 730px) {
    .wrapper{
      width: 730px;
      .resultItem {
        width: 100%;
      }
    }
  }
  @media (min-width: 992px) {
    .wrapper {
      width: 930px;
      .resultItem {
        width: 41%;
      }
    }
  }
  @media (min-width: 1200px) {
    .wrapper {
      width: 1120px;
      .resultItem {
        width: 41%;
      }
    }
  }
}